package com.shanlin.springtask;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@Configuration
@EnableScheduling
public class TaskClass {
	int count = 1;
	@Scheduled(cron="0/1 * * * * *")
	public void test1() {
		count++;
		System.out.println("这是count" +count+ "次");
	}
}
